<?php /*a:3:{s:61:"/www/practice/douyin/application/admin/view/source/index.html";i:1713191341;s:61:"/www/practice/douyin/application/admin/view/index_layout.html";i:1710484120;s:54:"/www/practice/douyin/application/admin/view/layui.html";i:1712799662;}*/ ?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><?php echo config('site.web_name'); ?></title>
    <meta name="author" content="YZNCMS">
    <link rel="stylesheet" href="/static/libs/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/css/admin.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
    <link rel="stylesheet" href="/static/common/font/iconfont.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
    <script src="/static/libs/layui/layui.js"></script>
    <script src="/static/libs/jquery/jquery.min.js"></script>
    <script type="text/javascript">
    //全局变量
    var GV = {
        'site':<?php echo json_encode($site); ?>,
        'image_upload_url': '<?php echo !empty($image_upload_url) ? htmlentities($image_upload_url) :  url("admin/ajax/upload", ["dir" => "images"]); ?>',
        'file_upload_url': '<?php echo !empty($file_upload_url) ? htmlentities($file_upload_url) :  url("admin/ajax/upload", ["dir" => "files"]); ?>',
        'attachment_select_url': '<?php echo !empty($attachment_select_url) ? htmlentities($attachment_select_url) :  url("general.attachments/select"); ?>',
    };
    </script>
</head>

<body class="childrenBody <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
    
<div class="layui-card">
    <div class="layui-card-header"></div>
    <div class="layui-card-body">
        <div class="layui-form">
            <table class="layui-hide" id="currentTable" lay-filter="currentTable"
            ></table>

            <input type="hidden" id="adminId" value="<?php echo htmlentities($adminId); ?>">
        </div>
    </div>
</div>

    
    <script type="text/javascript">
layui.config({
	version: '<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>',
	base: '/static/libs/layui_exts/'
}).extend({
	yzn: 'yzn/yzn',
	yznForm: 'yznForm/yznForm',
	tab: "pear/tab",               // 多选项卡组件
	yznUpload: 'yznUpload/yznUpload',
	yznTable: 'yznTable/yznTable',
	clipboard: 'clipboard/clipboard.min',
	notice: 'notice/notice.min',
	iconPicker: 'iconPicker/iconPicker.min',
	ztree: 'ztree/ztree',
	dragsort: 'dragsort/dragsort.min',
	tagsinput: 'tagsinput/tagsinput',
	xmSelect: 'xmSelect/xm-select',
	selectPage: 'selectPage/selectpage.min',
	echarts: 'echarts/echarts',
	echartsTheme: 'echarts/echartsTheme',
	citypicker: 'citypicker/city-picker',
	dropzone: 'dropzone/dropzone.min',
	ueditor: 'ueditor/ueditor.min',
	cxselect: 'cxselect/cxselect',
	addons: 'addons',
    aliossUploader:'aliossUploader'
});
</script>
    
    
<script type="text/javascript">
    layui.use('yznTable', function () {
        var table = layui.yznTable;

        var init = {
            table_elem: '#currentTable',
            table_render_id: 'currentTable',
            add_url: '<?php echo url("add"); ?>',
            edit_url: '<?php echo url("edit"); ?>',
            delete_url: '<?php echo url("del"); ?>',
            modify_url: "<?php echo url('multi'); ?>",
            recyclebin_url: "<?php echo url('recyclebin'); ?>",
        };


        var cloumns = [
            {type: 'checkbox', fixed: 'left'},
            {field: 'id', title: 'id', minWidth: 80},
            {field: 'cate.cate_name', title: '分类名称', minWidth: 80, searchOp: 'LIKE', minWidth: 110},
            {field: 'title', title: '标题', minWidth: 80, searchOp: 'LIKE', minWidth: 110},
            {
                field: 'kind',
                align: 'center',
                title: '类型',
                templet: yznTable.formatter.label,
                selectList: {2: '图片', 4: '视频'}
            },

            {
                field: 'hashtag',
                title: '标签',
                minWidth: 80,
                searchOp: 'LIKE',
                minWidth: 110,
                templet: yznTable.formatter.flag
            },
            {
                field: 'status',
                align: 'center',
                width: 120,
                search: false,
                title: '状态',
                unresize: true,
                templet: yznTable.formatter.switch,
                tips: "正常|冻结"
            },
            {field: 'sort', title: '排序', minWidth: 80},
            {
                field: 'create_time',
                title: '创建时间',
                minWidth: 80,
                width: 180,
                search: 'range',
                templet: yznTable.formatter.datetime
            },
            {
                field: 'is_lock',
                align: 'center',
                width: 120,
                search: false,
                title: '是否锁定',
                unresize: true,
                templet: yznTable.formatter.switch,
                tips: "是|否"
            },
            {
                fixed: 'right',
                width: 90,
                field: 'operate',
                title: '操作',
                templet: yznTable.formatter.tool,
                operat: ['edit', 'delete']
            }
        ]
        table.render({
            init: init,
            toolbar: ['refresh', 'add', 'delete'],
            url: '<?php echo url("index"); ?>',
            cols: yznTable.formatCols([cloumns], init),
            page: {}
        });

        yznTable.bindevent();
    });
</script>

</body>

</html>